import request from '@/utils/request'
const apiUrl = '/api/abnormal-attendance'
export function saveAbnormalAttendance(data) {
    return request({
        url: `${apiUrl}/save`,
        method: 'post',
        data
    })
}

export function batchSaveAbnormalAttendance(data) {
    return request({
        url: `${apiUrl}/batch-save`,
        method: 'post',
        data
    })
}

export function getAbnormalAttendanceList(params) {
    return request({
        url: `${apiUrl}/list`,
        method: 'get',
        params
    })
}

export function getAbnormalAttendanceDetail(id) {
    return request({
        url: `${apiUrl}/${id}`,
        method: 'get'
    })
}

export function deleteAbnormalAttendance(id) {
    return request({
        url: `${apiUrl}/${id}`,
        method: 'delete'
    })
} 